﻿#ifndef VISITOR_H
#define VISITOR_H

class Apple;
class Book;

class Visitor
{
public:
    Visitor();

    virtual void visit(Book* book) = 0;

    virtual void visit(Apple* element) = 0;
};

#endif // VISITOR_H
